import { httpInstance } from '@/utils/request'

interface FetchMobileBookAPIResData {
  code: number
  data: Person[]
  msg: string
  time: string
}

export function fetchMobileBookAPI(token: string, keyword?: string) {
  return httpInstance.get<FetchMobileBookAPIResData>(
    'api/Project_extend/mobileBookList',
    { params: { keyword }, headers: { token } },
  )
}
